using UnityDemo.LoggingUtility;

namespace UnityDemo.Models
{
    public static class DuckExtensions
    {
        public static void CheckDuckType(this IDuck duck)
        {
            if (duck is KingDuck)
                LogerInstance.Logger.Write(duck.Name);

            if (duck is QueenDuck)
                LogerInstance.Logger.Write(duck.Name);

            if (duck is SoldierDuck)
                LogerInstance.Logger.Write(duck.Name);
        }
    }
}